package com.design.mode.builder;

/**
 * @author 宫静雨
 * @version 1.0
 * @since 2023-04-03 16:56:50
 */
public class Director {

    private Builder builder;

    public Director(Builder builder) {
        this.builder = builder;
    }

    public void setBuilder(Builder builder) {
        this.builder = builder;
    }

    public Product builder() {
        return builder.build();
    }
}
